home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 10313 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: blue.cse.ogi.edu!leneis
  2. From: leneis@blue.cse.ogi.edu (Tony Leneis)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: AmigaOS 4.x features
  5. Date: 29 Mar 1996 09:57:46 GMT
  6. Organization: Oregon Graduate Institute (OGI), Portland, Oregon
  7. Message-ID: <4jgc6q$a61@reuter.cse.ogi.edu>
  8. References: <4j7ein$a6v@B1FF.mindspring.com> <4jc7g1$ipq@news.rhrz.uni-bonn.de> <4jfm8i$b5n@B1FF.mindspring.com>
  9. NNTP-Posting-Host: blue.cse.ogi.edu
  10.  
  11. In article <4jfm8i$b5n@B1FF.mindspring.com>,
  12. Charlie Moody <chmood@photobooks.atdc.gatech.edu> wrote:
  13. >On 27 Mar 1996 20:12:49 GMT, Bernhard Fastenrath wrote:
  14. >: Charlie Moody (chmood@photobooks.atdc.gatech.edu) wrote:
  15. >
  16. >: : A couple of features *I'd* like to see:
  17. >
  18. >: :  - adoption of *nix pattern-matching;  it stands head, shoulders, and ankles 
  19. >: :    above the original Amiga 'system' in power, simplicity, and flexibility.
  20.  
  21.     I'll grant that * is easier than #?, but the Amiga pattern matching
  22. is more powerful than traditional UNIX globbing.  As was pointed out earlier,
  23. you can always enable a UNIX-ish * by using a utility like wildstar.
  24.  
  25. >Not just '?' and '*', but also the bracketed ranging, a la 'mv 
  26. >fred-[a-z].pgm ram:'.
  27.  
  28.     You can do that now.  Have you ever *tried* it before?  For example:
  29.  
  30. 7.Ram Disk:> dir sys:[a-ce]#?
  31.      Workbench:Expansion (dir)
  32.      Workbench:Classes (dir)
  33.      Workbench:C (dir)
  34.   Expansion.info
  35.  
  36. This is with the standard shell and dir command.  Look on pages 3-16 through
  37. 3-18 in the Amiga OS 3.1 DOS manual.  Of course, if you're running 2.04 or
  38. earlier (I don't know about 2.1 or 3.0, though I'd assume 3.0 does square
  39. brackets), you can get the same effect by using the ()'s and | operators.
  40. For example, "dir sys:(a|b|c|e)#?".  Check out pages 8-13 through 8-15 in
  41. the AmigaDOS Reference section of the binder that WB 2.04 came in.  This was
  42. also present in AmigaDOS 1.0, 1.2, and 1.3, though I don't have the manuals
  43. nearby to look it up.
  44.  
  45.     The Amiga pattern matching scheme has always been, at a minimum,
  46. equivalent to the best UNIX shell globbing (sh, ksh, bash, csh, tcsh, etc.)
  47. in terms of power and flexibility.  In fact, it's significantly more power-
  48. ful and more flexible than most UNIX shells (unless there's an oddball one
  49. out there that provides full extended regex matching).  The main problem,
  50. if you want to call it a problem, is that it's different.  It also can be a
  51. little more awkward to use for certain patterns, but it always can get the
  52. job done.  I'd certainly take the functionality of the # operator any day
  53. over the UNIX * operator (provided I've got a match-any-character operator
  54. to go with it.)
  55.  
  56. -Tony
  57. -- 
  58. =====///===Hi!==I'm=a=.signature=virus!==Copy=me=to=your=.signature!===///==
  59. __  /// leneis@cse.ogi.edu          From the desk of:   Hillary,  __  ///   
  60. \\\///  tony@plaza.ds.adp.com       -->Tony Leneis<--   Gennifer, \\\///Only
  61.  \XX/   aleneis@gauss.math.hmc.edu  HMC '91  Go Stags!  AND NOW US!\XX/Amiga
  62.